#pragma once

#ifndef SIMULATOR_SYSTEM
#define SIMULATOR_SYSTEM

#include <core/typedef.h>

void simulator_init(int argc, char** argv);
int simulator_main_loop(void);
void simulator_cleanup(int status);

enum {
    SIMU_ARCH_ALL = -1,
    SIMU_ARCH_ALPHA = (1 << 0),
    SIMU_ARCH_ARM = (1 << 1),
    SIMU_ARCH_CRIS = (1 << 2),
    SIMU_ARCH_I386 = (1 << 3),
    SIMU_ARCH_M68K = (1 << 4),
    SIMU_ARCH_MICROBLAZE = (1 << 6),
    SIMU_ARCH_MIPS = (1 << 7),
    SIMU_ARCH_PPC = (1 << 8),
    SIMU_ARCH_S390X = (1 << 9),
    SIMU_ARCH_SH4 = (1 << 10),
    SIMU_ARCH_SPARC = (1 << 11),
    SIMU_ARCH_XTENSA = (1 << 12),
    SIMU_ARCH_OPENRISC = (1 << 13),
    SIMU_ARCH_TRICORE = (1 << 16),
    SIMU_ARCH_NIOS2 = (1 << 17),
    SIMU_ARCH_HPPA = (1 << 18),
    SIMU_ARCH_RISCV = (1 << 19),
    SIMU_ARCH_RX = (1 << 20),
    SIMU_ARCH_AVR = (1 << 21),
    SIMU_ARCH_HEXAGON = (1 << 22),
    SIMU_ARCH_LOONGARCH = (1 << 23),
};

extern const uint32_t arch_type;

void simu_init_arch_modules(void);

extern SimuOptsList simu_drive_opts;
extern SimuOptsList simu_legacy_drive_opts;
extern SimuOptsList simu_common_drive_opts;
extern SimuOptsList bdrv_runtime_opts;
#endif // SIMULATOR_SYSTEM
